package org.zjt.platform.springbootreactivedemo.repository;

import org.zjt.platform.springbootreactivedemo.entity.Person;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author <a href="juntao.zhang@qq.com">juntao.zhang</a>
 * @Description:
 * @Package org.zjt.platform.springbootreactivedemo.repository
 * @date 2018/3/15 10:45
 * @see
 */
@Mapper
@Repository
public interface PersonRepository {
    Person getPerson(Long id);


    List<Person> getAllPerson();


    Person getPersonByName(String name);

    void savePerson(Person person);
    void deletePerson(Long id);
}